#!/usr/bin/ruby

for i in (1..100)
  seed = 1 + rand(65000)
  `nachos -s #{seed}`
  if $? != 0
    puts "Error!"
    exit 1
  end
end
